﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UITLibraryManagement.Repository
{
    public class DauSachRepository : GenericRepository<DAUSACH>, IDauSachRepository
    {

        public DAUSACH FindByMaDauSach(string maDauSach)
        {
            return GetQuery().Where(c => c.MaDauSach == maDauSach).First();
        }

        public List<DAUSACH> GetListDauSach(int limit = 30)
        {
            return GetQuery().Take(limit).ToList();
        }
    }
}
